{% extends "base_generic.html" %}
{% block content %}
  <h1>People ({{people|length}})</h1>
  <h2><a href="/admin/people//new/" class="add">Add new Person</a></h2>
  <table class="tablelist">
  {% for person in people %}
    <tr>
      <td>{{forloop.counter}}</td>
      <td><a href="/people/{{person.url}}">{{person.name}}</a></td>
      <td>{{film.genre.name}}</td>
      <td>{{person.role.name}}</td>
      <td><a href="/admin/people/{{person.key}}/edit/">Edit</a></td>
      <td><a href="/admin/people/{{person.key}}/delete/" onclick="return confirm('are you sure do you want to delete \'{{person.name}}\'?');">Delete</a></td>
    </tr>
{%endfor%}
</table>
{% endblock %}
